package com.bwie.controller;

import com.bwie.pojo.TbOrder;
import com.bwie.service.TbOrderService;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LiuWei Chen
 * @version 1.0
 * @description: TODO
 * @date 2025/7/22 20:56
 */
@RestController
@RequestMapping("/prod/order")
@Slf4j
public class TbOrderController {
    @Autowired
    TbOrderService orderService;
    /**
     * @author LiuWeiChen
     * @description 获取订单列表
     * @params [pageInfoVo]
     * @return com.bwie.utils.R
     * @date 2025/7/23 10:35
    */
    @RequestMapping("/getPageListOrder")
    public R getPageListOrder(@RequestBody PageInfoVo pageInfoVo){
        log.info("获取订单列表");
        return orderService.getPageListOrder(pageInfoVo);
    }
}
